@extends('admin/layouts.default')

{{-- Web site Title --}}
@section('title')
ATM Managment ::
@parent
@stop

{{-- Content --}}
@section('content')
<div class="page-header">
    <h3>
        ATM Managment

        <div class="pull-right">
            <a href="{{{ URL::to('admin/locations/create') }}}" class="btn btn-small btn-info"><i class="icon-plus-sign icon-white"></i> Create</a>
        </div>
    </h3>
</div>

<table class="table table-bordered table-hover">
    <thead>
        <tr>
                        <th class="span6">{{{ Lang::get('admin/places/table.logo') }}}</th>
            <th class="span6">{{{ Lang::get('admin/places/table.name') }}}</th>
            <th class="span2">{{{ Lang::get('admin/places/table.created_at') }}}</th>
            <th class="span2">{{{ Lang::get('table.actions') }}}</th>
        </tr>
    </thead>
    <tbody>
        @foreach ($locations as $location)
        <tr>
                        <td class="logo"><img src="/uploads/images/locations/thumb/{{{ $location->image }}}" alt="{{{ $location->name }}}"/></td>
            <td class="name">{{{ $location->name }}}</td>
            <td class="date">{{{ $location->created_at() }}}</td>
            <td>
                <a href="{{{ URL::to('admin/locations/' . $location->id . '/edit') }}}" class="btn btn-mini">{{{ Lang::get('button.edit') }}}</a>
                <a href="{{{ URL::to('admin/locations/' . $location->id . '/delete') }}}" class="btn btn-mini btn-danger">{{{ Lang::get('button.delete') }}}</a>
            </td>
        </tr>
        @endforeach
    </tbody>
</table>
{{ $locations->links() }}
@stop
